<?php
$headers = getallheaders();
        echo "获取到的信息头<br />";
foreach ($headers as $name => $value) {
        echo "$name: $value<br />";
        file_put_contents("./data.html","$name: $value<br />",FILE_APPEND);
        
}
$data = $_POST;
        echo "获取到的POst数据<br />";
foreach ($data as $name1 => $value1) {
        echo "$name1: $value1<br />";
        file_put_contents("./data.html","$name1: $value1<br />",FILE_APPEND);
        
}
file_put_contents("./data.html","---------------------------------------<br />",FILE_APPEND);
//print_r($_HEADER);
